﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppFramework.DinosaursParkMes.TicketTask.DTO
{
    public class TicketTaskSelectResponseDTO
    {
        public int Id { get; set; }
        [Display(Name =("创建时间"))]
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        [Display(Name = "工单编号")]
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Workordernumber { get; set; }
        [Display(Name = ("工单名称"))]
        /// <summary>
        /// 工单名称
        /// </summary>
        public string WorkOrderName { get; set; }
        [Display(Name =("产品名称"))]
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        [Display(Name =("产品编号"))]
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
        [Display(Name =("规格"))]
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        [Display(Name =("产品类型"))]
        /// <summary>
        /// 产品类型
        /// </summary>
        public string ProductTypeName { get; set; }
        [Display(Name =("单位"))]
        /// <summary>
        /// 单位
        /// </summary>
        public string Units { get; set; }
        [Display(Name =("BOM编号"))]
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BOMCode { get; set; }
        [Display(Name = "任务编号")]
        /// <summary>
        /// 任务编号
        /// </summary>
        public string Missionnumber { get; set; }
        [Display(Name = "任务名称")]
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Taskname { get; set; }
        [Display(Name = "站点名称")]
        /// <summary>
        /// 站点名称
        /// </summary>
        public string Sitename { get; set; }
        [Display(Name = "工艺流程")]
        /// <summary>
        /// 工艺流程
        /// </summary>
        public string Technologicalprocess { get; set; }
        [Display(Name = "工序名称")]
        /// <summary>
        /// 工序名称
        /// </summary>
        public string Processname { get; set; }
        [Display(Name = "工序编号")]
        /// <summary>
        /// 工序编号
        /// </summary>
        public string Procedurenumber { get; set; }
        [Display(Name = "计划数量")]
        /// <summary>
        /// 计划数量
        /// </summary>
        public int Plannedquantity { get; set; }
        [Display(Name = "实际数量")]
        /// <summary>
        /// 实际数量
        /// </summary>
        public int Realquantity { get; set; }
        [Display(Name = "完工时间")]
        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime Completedate { get; set; }
        [Display(Name = "开工时间")]
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime Runplantdate { get; set; }
        [Display(Name = ("工艺编号"))]
        /// <summary>
        /// 工艺编号
        /// </summary>
        public string ProcessNumber { get; set; }
        public List<WuLiaoItem> children { get; set; }
    }
    public class WuLiaoItem
    {
        public int Id { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary  
        public string Materialnumber { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationsversion { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 物料类型
        /// </summary>
        public string Materialtype { get; set; }
        /// <summary>
        /// 使用量
        /// </summary>
        public int Usageamount { get; set; }
        /// <summary>
        /// 预计使用量
        /// </summary>
        public int PracticalUsageamount { get; set; }
    }
}
